{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Python数据分析    77.2\n",
       "生活中的统计学       33.6\n",
       "Name: books, dtype: float64"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "bookSeries = pd.Series([3.5, 77.2, 33.6], \n",
    "                       index=[\"Python一学就会\", \"Python数据分析\", \"生活中的统计学\"], \n",
    "                       name=\"books\")\n",
    "bookSeries[bookSeries > 8]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "        作者    价格\n",
      "101901  小明  33.5\n",
      "101902  小丽  34.5\n"
     ]
    }
   ],
   "source": [
    "data = {\"作者\":['小明', '小丽'], \"价格\":[33.5, 34.5]}\n",
    "index = ['101901', '101902']\n",
    "frame1=pd.DataFrame(data, index=index)\n",
    "print(frame1)"
   ]
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "11f1dc213e07634baa4c5c321dec03c05dafae643c50f20e6d1a492290c05dc2"
  },
  "kernelspec": {
   "display_name": "Python 3.9.7 64-bit",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
